package cn.pet.service.manage.controller;

import cn.pet.service.manage.entity.api.Result;
import cn.pet.service.manage.service.StatService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zwr
 * @version 1.0
 * @description TODO
 * @date 2023/3/6 20:08
 */
@RestController
@RequestMapping("/manage/stat")
public class StatController {

    @Resource
    private StatService statService;

    @GetMapping("common")
    public Object common(){
        return Result.ok("success",statService.commonStat());
    }

    @GetMapping("listSubApproving")
    public Object listSubApproving(){
        return Result.ok("success",statService.listSubApprovingLists());
    }

    @GetMapping("listOrderSending")
    public Object listOrderSending(){
        return Result.ok("success",statService.listOrderSendingLists());
    }

}
